<html>
<head><meta charset="utf-8"><title>loops in const-fn · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/loops.20in.20const-fn.html">loops in const-fn</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="171333156"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/loops%20in%20const-fn/near/171333156" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/loops.20in.20const-fn.html#171333156">(Jul 20 2019 at 16:15)</a>:</h4>
<p>How far are we from having it in stable?</p>



<a name="171333233"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/loops%20in%20const-fn/near/171333233" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/loops.20in.20const-fn.html#171333233">(Jul 20 2019 at 16:17)</a>:</h4>
<p>the diagnostic is a bit off:</p>
<div class="codehilite"><pre><span></span>error[E0723]: mutable references in const fn are unstable (see issue #57563)
   --&gt; src/rate.rs:236:14
    |
236 |     for i in 0..4 {
</pre></div>



<a name="171337700"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/loops%20in%20const-fn/near/171337700" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/loops.20in.20const-fn.html#171337700">(Jul 20 2019 at 18:32)</a>:</h4>
<p>For loops are very far off</p>



<a name="171337710"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/loops%20in%20const-fn/near/171337710" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/loops.20in.20const-fn.html#171337710">(Jul 20 2019 at 18:33)</a>:</h4>
<p>While loops are being worked on</p>



<a name="171337715"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/loops%20in%20const-fn/near/171337715" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/loops.20in.20const-fn.html#171337715">(Jul 20 2019 at 18:33)</a>:</h4>
<p>Maybe end of the year</p>



<a name="171438996"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/loops%20in%20const-fn/near/171438996" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/loops.20in.20const-fn.html#171438996">(Jul 22 2019 at 15:13)</a>:</h4>
<p>Realistic estimates are both great and terrible.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>